//
//  RankTabelViewHeaderFooterView.m
//  Cartoon
//
//  Created by dllo on 15/10/29.
//  Copyright © 2015年 YSZ. All rights reserved.
//

#import "RankTabelViewHeaderFooterView.h"

@implementation RankTabelViewHeaderFooterView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{

    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        _titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_titleLabel];
        _rank_icon_urlImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_rank_icon_urlImageView];
        
        self.button = [UIButton buttonWithType:UIButtonTypeSystem];
//        self.button.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_button];
    }

    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    _rank_icon_urlImageView.frame = CGRectMake(10, 0, 30, 30);
    _titleLabel.frame = CGRectMake(50, 0, 200, 30);
    _button.frame = CGRectMake(290, 0, 75, 30);
}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
